# _*_ coding utf-8 _*_
# FILENAME：.py
# DESCRIPTION: 
# AUTH: 
# DATE: 2022/6/55:50 下午

from PyQt5.QtWidgets import *
class MessageBox(QWidget):

    def __init__(self, parent=None):
        super(QWidget, self).__init__()

    def warrning(self,  title="", msg=""):
        messageBox = QMessageBox()
        # messageBox.setFixedWidth(300)
        # messageBox.setFixedHeight(100)
        messageBox.setWindowTitle(title)
        messageBox.setText(msg)
        messageBox.setIcon(2)
        messageBox.addButton(QPushButton('确定'), QMessageBox.YesRole)
        messageBox.exec_()